home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / kernel / sprite / RCS / doversion,v < prev    next >
Encoding:
Text File  |  1992-06-04  |  3.3 KB  |  173 lines

  1. head     1.5;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @# @;
  7.  
  8.  
  9. 1.5
  10. date     92.06.04.13.33.12;  author jhh;  state Exp;
  11. branches ;
  12. next     1.4;
  13.  
  14. 1.4
  15. date     90.02.09.08.42.18;  author brent;  state Exp;
  16. branches ;
  17. next     1.3;
  18.  
  19. 1.3
  20. date     90.01.31.16.47.45;  author mgbaker;  state Exp;
  21. branches ;
  22. next     1.2;
  23.  
  24. 1.2
  25. date     89.11.28.11.34.15;  author brent;  state Exp;
  26. branches ;
  27. next     1.1;
  28.  
  29. 1.1
  30. date     89.11.28.08.34.35;  author brent;  state Exp;
  31. branches ;
  32. next     ;
  33.  
  34.  
  35. desc
  36. @Script to generate a version string for a kernel
  37. @
  38.  
  39.  
  40. 1.5
  41. log
  42. @fixed up problems with quotes
  43. @
  44. text
  45. @#! /sprite/cmds/csh -f
  46. #
  47. #    Usage: doversion releaseNumber versionInfo outFile
  48. #
  49. #    releaseNumber is the major number for the version (currently 1)
  50. #    versionInfo controls the minor number of the version. If it is
  51. #        TRUE then the version is incremented from the last build, if
  52. #        it is FALSE it is not incremented, and any other value is taken
  53. #        to be the version number to use.
  54. #    outFile is the name of the .h file to generate.
  55. #
  56. # $Header: /sprite/src/kernel/sprite/RCS/doversion,v 1.4 90/02/09 08:42:18 brent Exp $ SPRITE (Berkeley)
  57. #
  58. # Copyright 1989 Regents of the University of California
  59. # Permission to use, copy, modify, and distribute this
  60. # software and its documentation for any purpose and without
  61. # fee is hereby granted, provided that the above copyright
  62. # notice appear in all copies.  The University of California
  63. # makes no representations about the suitability of this
  64. # software for any purpose.  It is provided "as is" without
  65. # express or implied warranty.
  66. #
  67.  
  68. set release = $1
  69. set versionInfo = $2
  70. set outFile = $3
  71.  
  72. set log = "no"
  73.  
  74. set version = `cat version`
  75. switch($versionInfo) 
  76.     case "TRUE":
  77.     case "true":
  78.     @@ version++
  79.     echo $version > version
  80.     set log = "yes"
  81.     breaksw
  82.     case "FALSE":
  83.     case "false":
  84.     breaksw
  85.     default:
  86.     set version = $versionInfo
  87.     set log = "yes"
  88.     breaksw
  89. endsw
  90. echo $version > version
  91. if ($version < 10 ) then
  92.     set version = "00"$version
  93. else if ($version < 100) then
  94.     set version = "0"$version
  95. endif
  96.  
  97. if ("$log" == "yes") then
  98.     co -l versionLog
  99.     echo "" >> versionLog
  100.     echo "$release.$version    `date`" >> versionLog
  101.     echo ""
  102.     echo "Please log message for $release.$version in versionLog"
  103.     echo ""
  104. endif
  105.  
  106. echo $version
  107.  
  108. mkversion -p "SPRITE VERSION $release.$version (MACHINE)" > $outFile
  109.  
  110. @
  111.  
  112.  
  113. 1.4
  114. log
  115. @Added echo of the version number
  116. @
  117. text
  118. @d12 1
  119. a12 1
  120. # $Header: /sprite/src/kernel/sprite/RCS/doversion,v 1.3 90/01/31 16:47:45 mgbaker Exp $ SPRITE (Berkeley)
  121. d33 1
  122. d39 1
  123. d53 1
  124. a53 1
  125. if ($log == "yes") then
  126. @
  127.  
  128.  
  129. 1.3
  130. log
  131. @Added checkout of versionLog since it seems to be checked in.
  132. @
  133. text
  134. @d12 1
  135. a12 1
  136. # $Header: /sprite/src/kernel/sprite/RCS/doversion,v 1.2 89/11/28 11:34:15 brent Exp Locker: mgbaker $ SPRITE (Berkeley)
  137. d59 2
  138. @
  139.  
  140.  
  141. 1.2
  142. log
  143. @Added logging support
  144. @
  145. text
  146. @d12 1
  147. a12 1
  148. # $Header: /sprite/lib/forms/RCS/proto.csh,v 1.2 89/01/16 11:13:37 ouster Exp $ SPRITE (Berkeley)
  149. d52 1
  150. @
  151.  
  152.  
  153. 1.1
  154. log
  155. @Initial revision
  156. @
  157. text
  158. @d3 2
  159. a4 1
  160. #    Usage: doversion releaseNumber versionInfo
  161. d7 4
  162. a10 3
  163. #    TRUE then the version is incremented from the last build, if
  164. #    it is FALSE it is not incremented, and any other value is taken
  165. #    to be the version number to use.
  166. d26 4
  167. d35 1
  168. d41 1
  169. d51 9
  170. a59 1
  171. mkversion -p "SPRITE VERSION $release.$version (MACHINE)" 
  172. @
  173.